<?php

namespace Common\Model\Cache;

class Oauth extends Base
{
    public function refresh()
    {
        $oauth = M("Oauth")->where(array('is_display' => 1))->order('sort desc')->getField('alias,name,config');
        $this->save($oauth);
        return $oauth;
    }

}